from zyb_caps import zybcaps,sleep
from appium import webdriver
from appium.webdriver.common.appiumby import By

# id 定位
# 输入用户名、输入密码，点击登录
driver = zybcaps()
driver.find_element(By.ID, 'com.baidu.homework:id/passport_phone_number_input_edit').send_keys('18638933197')
driver.find_element(By.ID, 'com.baidu.homework:id/passport_password_input_view').send_keys('zuoyebang')
driver.find_element(By.ID, 'com.baidu.homework:id/tv_phone_enter').click()
sleep(3)
driver.quit()